/**
 * es8 对象扩展
 */
// Object.values()
// Object.entries()

const obj = {
  name: 'aqie',
  age: 12
}

// 获取 key 
console.log(Object.keys(obj))
// 获取 value
console.log(Object.keys(obj).map(key => obj[key]))
// 获取 value
console.log(Object.values(obj))

for( let [key,value] of Object.entries(obj)){
  console.log(`${key} : ${value}`)
}
